<template>
  <a-table :columns="columns" :pagination="false" :data-source="Tabdata"> </a-table>
</template>
<script>
export default {
  props: {
    Tabdata: {
      type: [Object, Array],
      default: () => {},
    },
  },
  data() {
    return {
      Tabdata,
      columns: [
        {
          title: '姓名',
          dataIndex: 'name',
        },
        {
          title: '性别',
          dataIndex: 'sex',
        },
      ],
    }
  },
}
</script>